package net.chenlin.dp.modules.ticket.manager;

import java.util.List;

import net.chenlin.dp.common.entity.Page;
import net.chenlin.dp.common.entity.Query;
import net.chenlin.dp.modules.ticket.entity.TicketEntity;

/**
 * 
 * @author ZhouChenglin<yczclcn@163.com>
 */
public interface TicketManager {

    /**
     * 分页查询
     * @param page
     * @param search
     * @return
     */
	List<TicketEntity> listTicket(Page<TicketEntity> page, Query search);

    /**
     * 新增
     * @param ticket
     * @return
     */
	int saveTicket(TicketEntity ticket);

    /**
     * 根据id查询
     * @param id
     * @return
     */
	TicketEntity getTicketById(Long id);

    /**
     * 修改
     * @param ticket
     * @return
     */
	int updateTicket(TicketEntity ticket);

    /**
     * 删除
     * @param id
     * @return
     */
	int batchRemove(Long[] id);

	/**
     * 获取门票信息
     * @return
     */
	List<TicketEntity> selectTickets();

    List<TicketEntity> listTicket(String sortby);
}
